<template>
  <div :class='s.wrap'>
    <img :src="header" :class='s.header'>
    <div :class='s.msgWrap'>
      <div :class='s.triangle'></div>
      <div :class='s.msg' v-text='msg'></div>
    </div>
    <div :class='s.header' style="visibility: hidden;"></div>
  </div>
</template>

<style lang="less" module='s'>
.wrap{
  // width: 100%;
  display: flex;
  // padding-right: 80px;
  .header{
    width: 80px;
    height: 80px;
    margin: 0 10px;
    // border-radius: 50%;
  }
  .msgWrap{
    flex: 1;
    display: flex;
    margin-right: 16px;
    .triangle{
      // width: 5px;
      // height: 0;
      // border-top: solid 20px #fff;
      // border-left: solid 20px transparent;
      // z-index: 2;
    }
    .msg{
      // flex: 1;
      margin-left: -5px;
      background: #fff;
      // box-shadow: 0 0 6px 0 #d6d4d4;
      border-radius: 5px;
      padding: 26px 23px;
      font-size: 30px;
      line-height: 1.33;
      text-align: justify;
      color: #222;
    }
    &:before{
      width: 5px;
      height: 0;
      border-top: solid 16px transparent;
      border-bottom: solid 16px transparent;
      border-right: solid 16px #fff;
      z-index: 2;
      content: '';
      display: block;
      margin-top: 24px;
    }
  }
}
</style>
<script>
  export default {
    props: {
      msg: {
        type: String,
        default: '小君老师，次日上涨和次日下跌数分别是指什么呀？'
      },
      header: String
    }
  }
</script>
